package com.nwpu.server.search.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @Author: YuXingZh
 * @Date: Created in 16:20 2022-06-26
 * @Description:
 */

@Data
@Document(indexName = "network_relationship")
public class NetworkRelationshipEntity {
    @Id
    @Field(type = FieldType.Keyword)
    private String id;

    @Field(type = FieldType.Text)
    private String name;

    @Field(type = FieldType.Text)
    private String entities;

    @Field(type = FieldType.Keyword)
    private String size;

    @Field(type = FieldType.Keyword)
    private String node;

    @Field(type = FieldType.Keyword)
    private String edge;

    @Field(type = FieldType.Text)
    private String classification;

    @Field(type = FieldType.Text)
    private String source;

    @Field(type = FieldType.Text)
    private String description;

    @Field(type = FieldType.Keyword)
    private String dir;
}